package com.pzhu.record.service;

import com.pzhu.record.entity.Basicinformation;
import com.pzhu.record.entity.Page;

import java.util.List;
import java.util.Map;

/**
 * 学生信息业务接口
 *
 * @author Zhou YuSen
 * @date 2020/4/2 18:09
 */
public interface BasicinformationService extends BaseService<Basicinformation> {
    /**
     * 通过用户名与密码查询对象
     *
     * @param basicinformationId
     * @param basicinformationPassword
     * @return
     */
    Basicinformation selectByIdOrpass(String basicinformationId, String basicinformationPassword);

    /**
     * 批量增加
     *
     * @param basicinformationList
     */
    int insertBatch(List<Basicinformation> basicinformationList);

    /**
     * 条件分页查询
     *
     * @return 分页类
     */
    public Page<Basicinformation> selectPage(int pageIndex, Basicinformation basicinformation);

    /**
     * 查询总记录数
     *
     * @return 总记录数
     */
    public Integer selectPageCount(Page<Basicinformation> bbsuserPage);

    /**
     * 查询所有学生信息,导出
     *
     * @return
     */
    List<Basicinformation> selectExport(Map<String, String> keywords);

    /**
     * 根据学院查询最大Id号
     *
     * @param InstituteNume
     * @return
     */
    public String selectMaxId(String InstituteNume, String grade);
}
